package org.study4j.message.mq.rabbitmq.dto;

import java.io.Serializable;

/**
 * @description rabbitmq消息基础实体
 * @author jiangbin
 * @date 2019年1月20日 下午9:33:44
 * @version 1.0.0
 */
public class BaseRabbitDTO implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * 路由键
	 */
	private String routingKey;
	/**
	 * 交换机
	 */
	private String exchange;
	/**
	 * 消息实体
	 */
	private Object msg;

	public String getRoutingKey() {
		return routingKey;
	}

	public void setRoutingKey(String routingKey) {
		this.routingKey = routingKey;
	}

	public String getExchange() {
		return exchange;
	}

	public void setExchange(String exchange) {
		this.exchange = exchange;
	}

	public Object getMsg() {
		return msg;
	}

	public void setMsg(Object msg) {
		this.msg = msg;
	}

	@Override
	public String toString() {
		return "BaseRabbitDTO [routingKey=" + routingKey + ", exchange=" + exchange + ", msg=" + msg + "]";
	}

}
